package de.mo;

import gl.GLFactory;
import system.ArActivity;
import system.DefaultARSetup;
import util.Vec;
import worldData.World;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class main extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        Button b=new Button(this);
        
        b.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				ArActivity.startWithSetup(main.this, new DefaultARSetup() {
					
					@Override
					public void addObjectsTo(World world, GLFactory objectFactory) {
						
						
						world.add(objectFactory.newSolarSystem(new Vec(100, 0, 0)));
						
					}
				});
				
			}
		});
        setContentView(b);
//        setContentView(R.layout.main);
    }
}